<%@ page language="java" import="java.util.*" pageEncoding="utf8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div class="DaoHang">您当前位置：<a href="/">淘商城</a> -&gt; 确认订单</div>


<div class="cartbox">
    <div class="ShoppingCart">
        <table border="0" cellspacing="1" cellpadding="1" align="center" width="100%" class="border">
            <tr class='title' height="25">
                <td width="10%" align="center">编 号</td>
                <td align="center">商 品 名 称</td>
                <td width="15%" align="center">数 量</td>
                <td width="15%" align="center">单价</td>
                <td width="20%" align="center">总 计</td>
            </tr>

            <tr style="height:15px;">
                <td colspan=8>&nbsp;</td>
            </tr>
            <c:if test="${flag == false }">
                <tr class='tdbg' height="25" align="center">
                    <td colspan="8">您所查找的订单不存在，请确认你的订单号输入正确，点此<a href="Index">返回修改</a></td>
                </tr>
            </c:if>
            <c:if test="${flag == true }">
                <c:if test="${it != null }">
                    <c:forEach items="${it }" var="item">

                        <tr class='tdbg' height="25" align="center">
                            <td><input type="CheckBox" name="cartid" value="2" Checked></td>
                            <td align="left" valign="top">
                                <img src="${item.bookPhoto }" alt="${item.bookName }" width="50" height="50"
                                     align="left" style="border:1px solid #ccc;padding:2px"/>
                                    ${item.bookName }<br/>
                            </td>
                            <td><input type="Text" name="Q_2" value="${item.itemBookNum }" size="5"
                                       style="text-align:center" class="textbox"></td>
                            <td>￥${item.bookPrice }</td>
                            <td>￥${item.itemPrice }</td>
                        </tr>


                    </c:forEach>
                </c:if>
            </c:if>


        </table>

    </div>

</div>

<div class="clear"></div>


<c:if test="${flag == true }">
    <div class="cartborder">
        <div class="titleinput">你的收货信息</div>
        <div class="contactbox">
            <ul>
                <c:if test="${list!=null }">
                    <li>收货人姓名：${list.orderName }</li>
                    <li>收货人地址：${list.orderAdress }</li>
                    <li>收货人邮编：${list.orderPost}</li>
                    <li>收货人邮箱：${list.orderEmail }</li>
                    <li>收货人手机：${list.orderMobile }</li>
                    <li>收货人QQ：${list.orderQq }</li>
                    <li>付款方式：${list.orderMoneyWay }</li>
                    <li>送货方式：${list.orderDeliveryWay }</li>
                    <li>备注/留言：${list.orderDetail }</li>
                </c:if>
            </ul>
        </div>
        <div class="but">
            <input type="image" src="images/back.gif" border="0" alt="返回"
                   onclick="javascript:void(0);window.history.back(-1)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </div>

    </div>
</c:if>